function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 48);

T = model_5_IRFs.dynamic_resid_tt(T, y, x, params, steady_state, it_);

TEFD_fdd_6_1 = jacob_element('int_prod_disp',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4),params(10)*y(14)});
T(21) = TEFD_fdd_6_1;
TEFD_fdd_6_2 = jacob_element('int_prod_disp',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4),params(10)*y(14)});
T(22) = TEFD_fdd_6_2;
TEFD_fdd_6_11 = jacob_element('int_prod_disp',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4),params(10)*y(14)});
T(23) = TEFD_fdd_6_11;
TEFD_fdd_6_13 = jacob_element('int_prod_disp',13,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4),params(10)*y(14)});
T(24) = TEFD_fdd_6_13;
TEFD_fdd_1_1 = jacob_element('int_profit',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(25) = TEFD_fdd_1_1;
TEFD_fdd_1_2 = jacob_element('int_profit',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(26) = TEFD_fdd_1_2;
TEFD_fdd_1_11 = jacob_element('int_profit',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(27) = TEFD_fdd_1_11;
TEFD_fdd_2_1 = jacob_element('int_money',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(28) = TEFD_fdd_2_1;
TEFD_fdd_2_2 = jacob_element('int_money',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(29) = TEFD_fdd_2_2;
TEFD_fdd_2_11 = jacob_element('int_money',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(30) = TEFD_fdd_2_11;
TEFD_fdd_7_1 = jacob_element('int_liq',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(31) = TEFD_fdd_7_1;
TEFD_fdd_7_2 = jacob_element('int_liq',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(32) = TEFD_fdd_7_2;
TEFD_fdd_7_11 = jacob_element('int_liq',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(33) = TEFD_fdd_7_11;
T(34) = getPowerDeriv(T(6),(params(3)-1)/params(3),1);
TEFD_fdd_8_3 = jacob_element('int_surplus',3,{0,1,y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(12),params(4)});
T(35) = TEFD_fdd_8_3;
TEFD_fdd_8_12 = jacob_element('int_surplus',12,{0,1,y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(12),params(4)});
T(36) = TEFD_fdd_8_12;
TEFD_fdd_9_1 = jacob_element('int_partial',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(37) = TEFD_fdd_9_1;
TEFD_fdd_9_2 = jacob_element('int_partial',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(38) = TEFD_fdd_9_2;
TEFD_fdd_9_11 = jacob_element('int_partial',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(12),params(13),params(14),params(4),0});
T(39) = TEFD_fdd_9_11;
TEFD_fdd_4_1 = jacob_element('int_acquisition',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(40) = TEFD_fdd_4_1;
TEFD_fdd_4_2 = jacob_element('int_acquisition',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(41) = TEFD_fdd_4_2;
TEFD_fdd_4_11 = jacob_element('int_acquisition',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(13),params(14),params(4)});
T(42) = TEFD_fdd_4_11;
TEFD_fdd_5_1 = jacob_element('int_2nd_price',1,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4)});
T(43) = TEFD_fdd_5_1;
TEFD_fdd_5_2 = jacob_element('int_2nd_price',2,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4)});
T(44) = TEFD_fdd_5_2;
TEFD_fdd_5_11 = jacob_element('int_2nd_price',11,{y(44),y(21),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(2),params(4)});
T(45) = TEFD_fdd_5_11;
TEFD_fdd_0_1 = jacob_element('int_capital',1,{y(44),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(13),params(14)});
T(46) = TEFD_fdd_0_1;
TEFD_fdd_3_1 = jacob_element('average_log_normal',1,{y(45),params(20),params(21)});
T(47) = TEFD_fdd_3_1;
T(48) = y(30)*getPowerDeriv(y(51),1-params(3),1);

end
